<h2>Category</h2>

<?php echo anchor('blogadmin/addcategory/',"<button>Add New</button>");?>
<table cellpadding="1" border="1" class="datatable">
  <tr>
    <th>Categor Name</th>
    <th>Categor Basename</th>
    <th>Update</th>
    <th>Delete</th>
  </tr>
  <?php 
  if($records){
  foreach ($records as $row){ ?>
  <tr>
  	<td><?php echo $row->category_name;?></td>
  	<td><?php echo $row->category_basename;?></td>
    <td><?php echo anchor("blogadmin/updatecategory/$row->category_id","<button>Update</button>");?></td>
    <td><?php echo anchor("blogadmin/deletecategory/$row->category_id","<button>Delete</button>");?></td>
  </tr>
  <?php }
  }
  ?>
</table>

